package com.prs.crm.domain.hr;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.prs.crm.domain.FlowCodeEntity;
import com.prs.crm.domain.sys.Code;


@Entity
@Table(name="hr_jobtitle")
public class JobTitle extends FlowCodeEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4832549575673017392L;
	
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String jobTitlecode;
	private String name;
	private String remark;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="title")
	private Set<Resume> resumes;
	
//	@OneToOne(fetch=FetchType.LAZY,mappedBy="jobTitle")
//	private Code code;
//	
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getId() {
		return id;
	}
	
	public String getJobTitlecode() {
		return jobTitlecode;
	}
	public void setJobTitlecode(String jobTitlecode) {
		this.jobTitlecode = jobTitlecode;
	}
//	public Code getCode() {
//		return code;
//	}
//	public void setCode(Code code) {
//		this.code = code;
//	}
	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public void setResumes(Set<Resume> resumes) {
		this.resumes = resumes;
	}
	public Set<Resume> getResumes() {
		return resumes;
	}
}
